package com.jk.admin.controller;

import com.jk.admin.entity.Shoptype;
import com.jk.admin.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ShopController {
    @Autowired
    private ShopService shopService;

    @RequestMapping("getShop")
    public List<Shoptype> getShop(){

        return shopService.getShop();
    }
    @RequestMapping("delShop")
    public void delShop(Integer id){

         shopService.delShop(id);
    }

}
